package phylacterium.tools;

import java.sql.SQLException;

public class DBException extends Exception {
    private int code;
	private String error;
	
	public SQLException sqlException;

	public DBException(int code, String error){
		this.code = code;
		this.error = error;
	}
	
    public void setError(String error) {
	this.error = error;
    }

    public String getError() {
	return error;
    }

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	
	public static DBException lastError;

}
